<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>申请审核</title>

    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <script src="/js/jquery.min.js"></script>
    <script src="/js/assets/amazeui.widgets.helper.min.js"></script>
    <script src="/js/assets/amazeui.widgets.helper.js"></script>
    <script src="/js/assets/amazeui.ie8polyfill.min.js"></script>
    <script src="/js/assets/amazeui.ie8polyfill.js"></script>
    <script src="/js/assets/amazeui.min.js"></script>
    <script src="/js/assets/amazeui.js"></script>
    <script src="/js/mui.min.js"></script>

    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap-treeview.js"></script>

    <link rel="stylesheet" type="text/css" href="/css/assets/amazeui.min.css">
    <link rel="stylesheet" type="text/css" href="/css/assets/amazeui.css">
    <link rel="stylesheet" type="text/css" href="/css/mui.min.css">
    <link rel="stylesheet" type="text/css" href="/css/memberDetail.css">

    <style>
        textarea{
            background: gainsboro;
            margin: 24px 0;
            padding: 8px;
        }

        .am-btn am-btn-danger{
            height: 20px;
            font-size: 5px;
            padding: 0 23px;
        }
        button, input:not([type="radio"]):not([type="checkbox"]), select{
            height: 20px;
        }
        .am-g{
            background: darkcyan;
        }
        button, input:not([type="radio"]):not([type="checkbox"]), select{
            height: 38px;
            width: 100%;
        }
    </style>
</head>
<body>
    <div class="detail">
        <div class="am-g">

            <div class="am-u-sm-8">

                <div class="am-form-group">
                    <label class="am-u-sm-2 am-form-label">姓名</label>
                    <div class="am-u-sm-10">
                        <span th:text="${member.getFd_UserName()}" ></span>
                    </div>
                </div>

                <div class="am-form-group">
                    <label class="am-u-sm-2 am-form-label">生日</label>
                    <div class="am-u-sm-10">
                        <span th:text="${member.getFd_Gender()}" ></span>
                    </div>
                </div>

                <div class="am-form-group">
                    <label class="am-u-sm-2 am-form-label">个人学历</label>
                    <div class="am-u-sm-10">
                        <span th:text="${member.getFd_Educational()}" ></span>
                    </div>
                </div>

                <div class="am-form-group">
                    <label class="am-u-sm-2 am-form-label">民族</label>
                    <div class="am-u-sm-10">
                        <span th:text="${member.getFd_Nation()}" ></span>
                    </div>
                </div>

                <div class="am-form-group">
                    <label class="am-u-sm-2 am-form-label">出生地</label>
                    <div class="am-u-sm-10">
                        <span th:text="${member.getFd_NativePlace()}"></span>
                    </div>
                </div>

                <div class="am-form-group">
                    <label class="am-u-sm-2 am-form-label">申请入党日期</label>
                    <div class="am-u-sm-10">
                        <span th:text="${member.getFd_JoinPartyDate()}" ></span>
                    </div>
                </div>

                <div class="am-form-group">
                    <label class="am-u-sm-2 am-form-label">正式入党日期</label>
                    <div class="am-u-sm-10">
                        <span th:text="${member.getFd_BeRegularDate()}" ></span>
                    </div>
                </div>

            </div>
            <div class="am-u-sm-4">
                <img class="am-thumbnail" th:src="${member.getFd_ImageUrl()}" alt=""/>
            </div>
        </div>


    </div>
    <form action="beSavePartyrelationship" class="am-form" method="post" id="transferForm">
        <p>原组织</p>
        <p th:text="${member.getFd_branchName()}"></p>
        <input type="hidden" id="fd_id" name="fd_id" th:value="${trans.getFd_LoginID()}" hidden="hidden">
        <input name="fd_LoginID" id="fd_LoginID" th:value="${member.getFd_loginId()}" hidden="hidden">
        <input name="fd_MemberName" id="fd_MemberName" th:value="${member.getFd_UserName()}" hidden="hidden">
        <input type="hidden" name="fd_TageBranchID" th:value="${trans.getFd_TageBranchID()}" hidden="hidden">
        <input type="hidden" id="fd_TageBranchID" name="fd_FormerBranchID" th:value="${trans.getFd_FormerBranchID()}" hidden="hidden">
        <input type="hidden" id="fd_ApplicationId" value="0" name="fd_ApplicationId" hidden="hidden">
        <input type="hidden" id="fd_Status" name="fd_Status" value="1" hidden="hidden">
        <input type="hidden" id="fd_response" name="fd_response" value="" hidden="hidden">
        <input type="submit" class="am-btn am-btn-danger" id="yes" value="同意接收">
        <input type="button" class="am-btn am-btn-danger" id="no" value="拒绝接受" onclick="subNo()">
    </form>
</body>
<script>
    function subNo(){
        var fd_Status=document.getElementById("fd_Status");
        fd_Status.value="2";
        var response=prompt("请输入拒绝原因","");
        if (response!=null && response!=""){
            var fd_response=document.getElementById("fd_response");
            fd_response.value=response;
            document.getElementById("transferForm").submit();
        }
    }
</script>
</html>